<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>{$title}系统控制台 - 主页</title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;/ie.html"/>
    <![endif]-->
    <link href="/public/plugins/bootstrap/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/public/plugins/fontawesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/public/plugins/animate/animate.css" rel="stylesheet">
    <link href="/public/system/css/style.css" rel="stylesheet">
    <script src="/public/plugins/jquery.min.js?v=2.1.4"></script>
    <link rel="stylesheet" href="/public/plugins/ztree/css/metroStyle/metroStyle.css" type="text/css">
    <script type="text/javascript" src="/public/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
    <style>
        .fixed-nav #content-main {
            height: 100%;
            overflow: hidden;
        }
    </style>
</head>
<body class="fixed-sidebar fixed-nav full-height-layout gray-bg" style="overflow:hidden">
<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side">
        <div class="nav-close"><i class="fa fa-times-circle"></i></div>
        <div class="sidebar-collapse">
            <ul class="nav">
                <li class="nav-header text-center">
                    <div class="dropdown profile-element">
                        <span><img class="img-circle" src="/public/system/img/syslogo.jpg" style="width:80px;height:80px;display:block;margin:0 auto;" /></span>
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold">{$adminInfo.admin_name}</strong></span>
                                <span class="text-muted text-xs block">{$adminInfo.admin_truename}<b class="caret"></b></span>
                                </span>
                        </a>
                        <ul class="dropdown-menu animated fadeInRight m-t-xs">
                            <li><a target="iframe" href="{:url('admin.admin/editpass')}">修改密码</a></li>
                            <li><a class="exitLogin" href="javascript:;">退出登录</a></li>
                        </ul>
                    </div>
                    <div class="logo-element" style="padding:35px 0  18px;">SYS</div>
                </li>
            </ul>
            <ul class="nav" id="side-menu">
                {eq name="adminInfo.admin_power" value="1"}
                <li><a href="{:url('admin.admin/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">管理员管理</span></a></li>
                <li><a href="{:url('admin.class/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">圈子分类</span></a></li>
                <li><a href="{:url('admin.circle/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">圈子管理</span></a></li>
                <li><a href="{:url('admin.company/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">企业库管理</span></a></li>
                <li><a href="{:url('admin.dept/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">部门管理</span></a></li>
                <li><a href="{:url('admin.meeting/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议管理</span></a></li>
                <li><a href="{:url('admin.meeting_company/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议企业管理</span></a></li>
                <li><a href="{:url('admin.meeting_content/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议资讯</span></a></li>
                <li><a href="{:url('admin.theme/sensitive')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">敏感词管理</span></a></li>
                {/eq}
                {eq name="adminInfo.admin_power" value="2"}
                <li><a href="{:url('admin.admin/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">管理员管理</span></a></li>
                <li><a href="{:url('admin.circle/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">圈子管理</span></a></li>
                <li><a href="{:url('admin.company/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">企业库管理</span></a></li>
                <li><a href="{:url('admin.meeting/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议管理</span></a></li>
                <li><a href="{:url('admin.meeting_company/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议企业管理</span></a></li>
                <li><a href="{:url('admin.meeting_content/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议资讯</span></a></li>
                {/eq}
                {eq name="adminInfo.admin_power" value="3"}
                <li><a href="{:url('admin.admin/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">管理员管理</span></a></li>
                <li><a href="{:url('admin.circle/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">圈子管理</span></a></li>
                <li><a href="{:url('admin.company/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">企业库管理</span></a></li>
                <li><a href="{:url('admin.meeting/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议管理</span></a></li>
                <li><a href="{:url('admin.meeting_company/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议企业管理</span></a></li>
                <li><a href="{:url('admin.meeting_content/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议资讯</span></a></li>
                <li><a href="{:url('admin.member/report')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会员举报管理</span></a></li>
                <li><a href="{:url('admin.theme/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">圈子主题管理</span></a></li>
                <li><a href="{:url('admin.meeting_sign/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">会议报名管理</span></a></li>
                <li><a href="{:url('admin.circle_member/index')}" target="iframe"><i class="fa fa-th"></i> <span class="nav-label">圈子申请管理</span></a></li>
                {/eq}
                </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="navbar navbar-fixed-top">
            <h1 class="hidden-xs">控制台</h1>
            <div class="pull-left">
                <span class="navbar-minimalize" href="javascript:;"><i class="fa fa-bars"></i></span>
            </div>
            <div class="hidden-sm hidden-xs">
                <div class="pull-right">
                    <ul class="top-menu top-menu-right clearfix">
                        <li class="nav-item" style="background:#1ab394"><a href="{:url('circle/Index/index')}" target="_blank"><i class="fa fa-home"></i> 主页</a></li>
                        <li class="nav-item" style="background:#ed5565"><a href="javascript:;" class="exitLogin"><i class="fa fa-sign-out"></i> 退出</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="row J_mainContent" id="content-main">
            <iframe class="J_iframe" id="iframe" name="iframe" width="100%" height="100%" src="{:url('main')}" frameborder="0"
                    data-id="{:url('main')}" seamless></iframe>
        </div>
    </div>
    <!--右侧部分结束-->
</div>
<!-- 全局js -->
<script src="/public/plugins/bootstrap/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/public/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!-- 自定义js -->
<script src="/public/plugins/layer/layer.js"></script>
<script src="/public/system/js/hplus.js"></script>
<script type="text/javascript">
    $(function () {
        $('.exitLogin').click(function () {
            layer.confirm('确定要退出登录吗？', {icon: 3, title: '提示消息'}, function (index) {
                layer.close(index);
                $.post("{:url('exitLogin')}", function (data) {
                    location.href = data.url;
                });
            });
        });
    })
</script>
</body>
</html>